package com.blrs.mapper;

import java.util.List;
import com.blrs.domain.QualificationInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 资质产品管理Mapper接口
 * 
 * @author ruoyi
 * @date 2023-08-07
 */
public interface QualificationInfoMapper 
{
    /**
     * 查询资质产品管理
     * 
     * @param id 资质产品管理主键
     * @return 资质产品管理
     */
    public QualificationInfo selectQualificationInfoById(String id);

    /**
     * 查询资质产品管理列表
     * 
     * @param qualificationInfo 资质产品管理
     * @return 资质产品管理集合
     */
     public List<QualificationInfo> selectQualificationInfoList(QualificationInfo qualificationInfo);
     public List<QualificationInfo> selectQualificationInfoListByOrgId(QualificationInfo qualificationInfo);

    /**
     * 新增资质产品管理
     * 
     * @param qualificationInfo 资质产品管理
     * @return 结果
     */
    public int insertQualificationInfo(QualificationInfo qualificationInfo);

    /**
     * 修改资质产品管理
     * 
     * @param qualificationInfo 资质产品管理
     * @return 结果
     */
    public int updateQualificationInfo(QualificationInfo qualificationInfo);

    /**
     * 删除资质产品管理
     * 
     * @param id 资质产品管理主键
     * @return 结果
     */
    public int deleteQualificationInfoById(String id);

    /**
     * 批量删除资质产品管理
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteQualificationInfoByIds(String[] ids);

    String selectUploadUrl(String exeStandard);

    List<String> selectEntersList(@Param("array") String[] split);

    int selectQualificationInfoByNameAndNo(QualificationInfo qualificationInfo);

    String selectType(String type);

    int approveStatus(@Param("id") String[]id,@Param("status") String status);

    int selectOneProductNo(QualificationInfo productNo);

    void updateQualificationInfoStatus(String[] id);

    void updateQualificationInfoExamine(QualificationInfo qualificationInfo);

    List<QualificationInfo> selectQualificationInfoListChange(QualificationInfo qualificationInfo);

    int selectQualificationInfoByNameAndOrgId(@Param("productName") String productName, @Param("initiatorId") String initiatorId);

    @Select(" select  product_no from qualification_info where organization_id=#{orgId} and examine_status='通过'")
    List<String> selectEntersNo(Long orgId);

    List<QualificationInfo> selectQualificationInfoListAdmin(QualificationInfo qualificationInfo);

    List<QualificationInfo> selectQualificationInfoListByUp(QualificationInfo qualificationInfo);
    int selectQualificationInfoNumber(Long organizationId);

    int updateQualificationStatusById(String id);

    List<QualificationInfo> selectQualificationInfoByListing(QualificationInfo qualificationInfo);

    String selectQualificationInfoByOrgAndNo(@Param("orgId") Long orgId, @Param("no") String no);

    int updateQualificationInfoApply(@Param("id") String id,@Param("apply") String apply);

    int selectIdenticalQualificationInfo(QualificationInfo qualificationInfo);
}
